ssh-keygen -t rsa -b 4096 -N "" -f ~/.ssh/id_rsa -q <<<y >/dev/null 2>&1

for IP  in $(cat iplist); do 
    sshpass -p "Huawei12#$" ssh-copy-id -i /root/.ssh/id_rsa.pub -o StrictHostKeyChecking=no root@${IP}
done


for IP  in $(cat iplist); do  ssh -q -o BatchMode=yes root@${IP} echo ${IP}  'Connected';done
